//
//  ZDepartmentsCollectionViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/24.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZDepartmentsCollectionViewCell.h"

@implementation ZDepartmentsCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        self.layer.cornerRadius = 2;
        _textLabel = [[UILabel alloc] initWithFrame:self.bounds];
        _textLabel.textAlignment = NSTextAlignmentCenter;
        _textLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:_textLabel];
        [_textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self);
        }];
        
    }
    return self;
}
- (void)setModel:(ZOfficesModel *)model {
    _model = model;
    _textLabel.text = _model.title;
    return;
}
@end
